import 'package:my_shop/generated/json/base/json_convert_content.dart';
import 'package:my_shop/cart/demo_model_entity.dart';

DemoModelEntity $DemoModelEntityFromJson(Map<String, dynamic> json) {
  final DemoModelEntity demoModelEntity = DemoModelEntity();
  final String? data = jsonConvert.convert<String>(json['data']);
  if (data != null) {
    demoModelEntity.data = data;
  }
  return demoModelEntity;
}

Map<String, dynamic> $DemoModelEntityToJson(DemoModelEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['data'] = entity.data;
  return data;
}

extension DemoModelEntityExtension on DemoModelEntity {
  DemoModelEntity copyWith({
    String? data,
  }) {
    return DemoModelEntity()
      ..data = data ?? this.data;
  }
}